package Singleton;

public class Universe {

	private static Universe universe;
	private Universe() {}
	
	public static synchronized Universe getUniverse() throws Exception {
		if (universe == null) {
			universe = new Universe();
		}
		else {
			throw new Exception("There is only one universe!");
		}
		return universe;
	}
}
